//
//  niceCollectionCell.m
//  doubleEduStudents
//
//  Created by 盛洋 on 2021/3/25.
//  Copyright © 2021 shengYang. All rights reserved.
//

#import "niceCollectionCell.h"

@implementation niceCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    APPViewBorderRadius(self, 8, 0, [UIColor clearColor]);
    self.title_lab.font = AutoLabFont2;
    self.content_lab.font = self.teacher_lab.font = self.type_lab.font = AutoLabFont3;
}

-(void)setModel:(CurriculumListModel *)model{
    _model = model;
    _title_lab.text = [NSString stringWithFormat:@"%@",model.categoryName];
    _content_lab.text = [NSString stringWithFormat:@"%@",model.courseDesc];
//    _teacher_lab.text = [NSString stringWithFormat:@"%@",model.stageName];
    if ([model.coursePayType intValue] == 1) {
        _type_lab.text = [NSString stringWithFormat:@"付费"];
    }else{
        _type_lab.text = [NSString stringWithFormat:@"免费"];
    }
    
}

@end
